import { defineStore } from 'pinia';

const useUserStore = defineStore('user', {
  state: () => ({
    token: '',
  }),
  getters: {
    getToken(state) {
      return state.token;
    }
  },
  actions: {
    SET_TOKEN(token) {
      this.token = token;
    },
  },

});

export default useUserStore;
